import { useLocation } from "react-router-dom";

export default function About() {
  const { state } = useLocation<{ id: number; name: string }>();

  return (
    <div>
      <h2>About</h2>
      <p>Id: {state?.id}</p>
      <p>Name: {state?.name}</p>
    </div>
  );
}
